package com.ease.aa.system.exception.impl;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;

import com.ease.context.i18n.ResourceMessageUtil;

public class ExceptionResourceCache {

	public static Map<Locale, Properties> cache = new HashMap<Locale, Properties>();

	public static void setDefaultProperties(Properties prop) {
		cache.put(ResourceMessageUtil.EOS_DEFAULT_LOCALE, prop);
	}

	public static Properties getDefaultProperties() {
		return cache.get(ResourceMessageUtil.EOS_DEFAULT_LOCALE);
	}

	public static void addLocaleProperties(Locale locale, Properties prop) {
		cache.put(locale, prop);
	}

	public static Properties getLocaleProperties(Locale locale) {
		return cache.get(locale);
	}

}
